home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1986-04-16 | 7.0 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: ManyWind.mod
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| SoundTracker Module (music/soundTracker)
| ext
| Supported |
65%
| dexvert
| Chip Tracker Module (music/chipTracker)
| ext
| Supported |
64%
| dexvert
| Protracker Module (music/mod)
| ext
| Supported |
63%
| dexvert
| Octalyser Module (music/octalyser)
| ext
| Supported |
61%
| dexvert
| Star Tracker/StarTrekker Module (music/starTracker)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| PollyTracker Module (music/pollyTracker)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Apr 16 15:19:54 1986, modified Wed Apr 16 15:19:54 1986, creator 'MPS ', type ASCII, 6637 bytes "ManyWind.mod" , at 0x1a6d 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 4d 61 6e 79 57 69 | 6e 64 2e 6d 6f 64 00 00 |..ManyWi|nd.mod..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 19 ed 00 | 00 01 7e 9a c9 b9 ea 9a |........|..~.....|
|00000060| c9 b9 ea 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 57 61 00 00 |........|....Wa..|
|00000080| 4d 4f 44 55 4c 45 20 4d | 61 6e 79 57 69 6e 64 3b |MODULE M|anyWind;|
|00000090| 0d 0d 28 2a 0d 09 54 68 | 69 73 20 61 70 70 6c 69 |..(*..Th|is appli|
|000000a0| 63 61 74 69 6f 6e 20 61 | 6c 6c 6f 77 73 20 75 70 |cation a|llows up|
|000000b0| 20 74 6f 20 74 77 65 6e | 74 79 20 77 69 6e 64 6f | to twen|ty windo|
|000000c0| 77 73 20 74 6f 20 62 65 | 20 63 72 65 61 74 65 64 |ws to be| created|
|000000d0| 20 61 74 20 6f 6e 63 65 | 2c 20 77 69 74 68 20 74 | at once|, with t|
|000000e0| 68 65 0d 09 4e 65 77 20 | 69 74 65 6d 20 75 6e 64 |he..New |item und|
|000000f0| 65 72 20 74 68 65 20 46 | 69 6c 65 20 6d 65 6e 75 |er the F|ile menu|
|00000100| 2e 20 20 54 68 65 20 6e | 61 6d 65 20 6f 66 20 65 |. The n|ame of e|
|00000110| 61 63 68 20 77 69 6e 64 | 6f 77 20 61 70 70 65 61 |ach wind|ow appea|
|00000120| 72 73 20 75 6e 64 65 72 | 20 74 68 65 0d 09 57 69 |rs under| the..Wi|
|00000130| 6e 64 6f 77 73 20 6d 65 | 6e 75 20 28 77 68 69 63 |ndows me|nu (whic|
|00000140| 68 20 69 73 20 6e 6f 74 | 20 63 72 65 61 74 65 64 |h is not| created|
|00000150| 20 75 6e 74 69 6c 20 61 | 74 20 6c 65 61 73 74 20 | until a|t least |
|00000160| 6f 6e 65 20 77 69 6e 64 | 6f 77 20 65 78 69 73 74 |one wind|ow exist|
|00000170| 73 29 2e 0d 09 53 65 6c | 65 63 74 69 6e 67 20 74 |s)...Sel|ecting t|
|00000180| 68 65 20 77 69 6e 64 6f | 77 20 6e 61 6d 65 20 66 |he windo|w name f|
|00000190| 72 6f 6d 20 74 68 65 20 | 57 69 6e 64 6f 77 73 20 |rom the |Windows |
|000001a0| 6d 65 6e 75 20 62 72 69 | 6e 67 73 20 74 68 65 20 |menu bri|ngs the |
|000001b0| 77 69 6e 64 6f 77 20 74 | 6f 20 74 68 65 0d 09 66 |window t|o the..f|
|000001c0| 72 6f 6e 74 2e 20 20 46 | 6f 72 20 65 76 65 72 79 |ront. F|or every|
|000001d0| 20 77 69 6e 64 6f 77 20 | 63 72 65 61 74 65 64 2c | window |created,|
|000001e0| 20 53 6b 65 6c 20 69 73 | 20 74 6f 6c 64 20 74 6f | Skel is| told to|
|000001f0| 20 63 72 65 61 74 65 20 | 61 20 6e 65 77 20 68 61 | create |a new ha|
|00000200| 6e 64 6c 65 72 2e 20 20 | 49 66 0d 09 74 68 65 20 |ndler. |If..the |
|00000210| 77 69 6e 64 6f 77 27 73 | 20 63 6c 6f 73 65 20 62 |window's| close b|
|00000220| 6f 78 20 69 73 20 63 6c | 69 63 6b 65 64 2c 20 74 |ox is cl|icked, t|
|00000230| 68 65 20 68 61 6e 64 6c | 65 72 20 72 65 6d 6f 76 |he handl|er remov|
|00000240| 65 73 20 74 68 65 20 77 | 69 6e 64 6f 77 20 6e 61 |es the w|indow na|
|00000250| 6d 65 20 66 72 6f 6d 0d | 09 74 68 65 20 57 69 6e |me from.|.the Win|
|00000260| 64 6f 77 73 20 6d 65 6e | 75 2c 20 64 69 73 70 6f |dows men|u, dispo|
|00000270| 73 65 73 20 6f 66 20 74 | 68 65 20 77 69 6e 64 6f |ses of t|he windo|
|00000280| 77 2c 20 61 6e 64 20 72 | 65 6d 6f 76 65 73 20 69 |w, and r|emoves i|
|00000290| 74 73 65 6c 66 20 66 72 | 6f 6d 20 74 68 65 20 77 |tself fr|om the w|
|000002a0| 69 6e 64 6f 77 0d 09 68 | 61 6e 64 6c 65 72 20 6c |indow..h|andler l|
|000002b0| 69 73 74 2e 20 20 49 66 | 20 74 68 65 20 77 69 6e |ist. If| the win|
|000002c0| 64 6f 77 20 77 61 73 20 | 74 68 65 20 6c 61 73 74 |dow was |the last|
|000002d0| 20 77 69 6e 64 6f 77 2c | 20 74 68 65 20 57 69 6e | window,| the Win|
|000002e0| 64 6f 77 73 20 6d 65 6e | 75 20 68 61 6e 64 6c 65 |dows men|u handle|
|000002f0| 72 0d 09 72 65 6d 6f 76 | 65 73 20 69 74 73 65 6c |r..remov|es itsel|
|00000300| 66 20 66 72 6f 6d 20 74 | 68 65 20 6d 65 6e 75 20 |f from t|he menu |
|00000310| 68 61 6e 64 6c 65 72 20 | 6c 69 73 74 2e 0d 09 0d |handler |list....|
|00000320| 09 57 68 65 6e 20 74 68 | 65 20 66 69 72 73 74 20 |.When th|e first |
|00000330| 77 69 6e 64 6f 77 20 69 | 73 20 63 72 65 61 74 65 |window i|s create|
|00000340| 64 2c 20 61 20 43 6f 6c | 6f 72 20 6d 65 6e 75 20 |d, a Col|or menu |
|00000350| 61 6c 73 6f 20 61 70 70 | 65 61 72 73 2e 20 20 54 |also app|ears. T|
|00000360| 68 69 73 20 61 6c 6c 6f | 77 73 20 74 68 65 0d 09 |his allo|ws the..|
|00000370| 70 61 74 74 65 72 6e 20 | 6f 66 20 74 68 65 20 63 |pattern |of the c|
|00000380| 6f 6e 74 65 6e 74 20 72 | 65 67 69 6f 6e 20 6f 66 |ontent r|egion of|
|00000390| 20 74 68 65 20 66 72 6f | 6e 74 6d 6f 73 74 20 77 | the fro|ntmost w|
|000003a0| 69 6e 64 6f 77 20 74 6f | 20 62 65 20 63 68 61 6e |indow to| be chan|
|000003b0| 67 65 64 2e 20 20 49 74 | 20 67 6f 65 73 0d 09 61 |ged. It| goes..a|
|000003c0| 77 61 79 20 77 68 65 6e | 20 74 68 65 20 6c 61 73 |way when| the las|
|000003d0| 74 20 77 69 6e 64 6f 77 | 20 69 73 20 63 6c 6f 73 |t window| is clos|
|000003e0| 65 64 2e 0d 09 0d 09 54 | 6f 20 71 75 69 74 2c 20 |ed.....T|o quit, |
|000003f0| 73 65 6c 65 63 74 20 51 | 75 69 74 20 66 72 6f 6d |select Q|uit from|
|00000400| 20 74 68 65 20 46 69 6c | 65 20 6d 65 6e 75 20 6f | the Fil|e menu o|
|00000410| 72 20 74 79 70 65 20 43 | 6f 6d 6d 61 6e 64 2d 51 |r type C|ommand-Q|
|00000420| 2e 0d 09 0d 09 4d 61 6e | 79 57 69 6e 64 20 64 65 |.....Man|yWind de|
|00000430| 6d 6f 6e 73 74 72 61 74 | 65 73 20 64 79 6e 61 6d |monstrat|es dynam|
|00000440| 69 63 20 77 69 6e 64 6f | 77 20 61 6e 64 20 6d 65 |ic windo|w and me|
|00000450| 6e 75 20 63 72 65 61 74 | 69 6f 6e 20 61 6e 64 20 |nu creat|ion and |
|00000460| 64 69 73 70 6f 73 61 6c | 2e 20 20 49 74 0d 09 61 |disposal|. It..a|
|00000470| 6c 73 6f 20 73 68 6f 77 | 73 20 68 6f 77 20 68 61 |lso show|s how ha|
|00000480| 6e 64 6c 65 72 20 70 72 | 6f 63 65 64 75 72 65 73 |ndler pr|ocedures|
|00000490| 20 6d 61 79 20 62 65 20 | 73 68 61 72 65 64 20 61 | may be |shared a|
|000004a0| 6d 6f 6e 67 20 68 61 6e | 64 6c 65 72 73 20 66 6f |mong han|dlers fo|
|000004b0| 72 20 64 69 66 66 65 72 | 65 6e 74 0d 09 77 69 6e |r differ|ent..win|
|000004c0| 64 6f 77 73 2e 0d 09 0d | 09 a9 20 50 61 75 6c 20 |dows....|.. Paul |
|000004d0| 44 75 42 6f 69 73 09 d1 | 20 32 38 20 4a 75 6e 65 |DuBois..| 28 June|
|000004e0| 20 31 39 38 36 0d 09 09 | 54 4d 4c 20 4d 6f 64 75 | 1986...|TML Modu|
|000004f0| 6c 61 2d 32 20 76 65 72 | 73 69 6f 6e 20 62 79 20 |la-2 ver|sion by |
|00000500| 44 65 6e 6e 69 73 20 43 | 6f 68 65 6e 20 d1 20 31 |Dennis C|ohen . 1|
|00000510| 36 20 41 70 72 69 6c 20 | 31 39 38 37 0d 2a 29 0d |6 April |1987.*).|
|00000520| 0d 46 52 4f 4d 20 53 59 | 53 54 45 4d 20 49 4d 50 |.FROM SY|STEM IMP|
|00000530| 4f 52 54 20 41 44 44 52 | 45 53 53 2c 20 41 44 52 |ORT ADDR|ESS, ADR|
|00000540| 3b 0d 46 52 4f 4d 20 51 | 75 69 63 6b 44 72 61 77 |;.FROM Q|uickDraw|
|00000550| 20 49 4d 50 4f 52 54 20 | 52 65 63 74 2c 20 47 72 | IMPORT |Rect, Gr|
|00000560| 61 66 50 74 72 2c 20 47 | 65 74 50 6f 72 74 2c 20 |afPtr, G|etPort, |
|00000570| 45 72 61 73 65 52 65 63 | 74 2c 20 4f 66 66 73 65 |EraseRec|t, Offse|
|00000580| 74 52 65 63 74 2c 20 42 | 61 63 6b 50 61 74 2c 0d |tRect, B|ackPat,.|
|00000590| 09 09 09 09 09 09 09 09 | 09 09 09 53 65 74 52 65 |........|...SetRe|
|000005a0| 63 74 2c 20 77 68 69 74 | 65 2c 20 6c 74 47 72 61 |ct, whit|e, ltGra|
|000005b0| 79 2c 20 67 72 61 79 2c | 20 64 6b 47 72 61 79 2c |y, gray,| dkGray,|
|000005c0| 20 62 6c 61 63 6b 3b 0d | 46 52 4f 4d 20 4d 65 6e | black;.|FROM Men|
|000005d0| 75 4d 61 6e 61 67 65 72 | 20 49 4d 50 4f 52 54 20 |uManager| IMPORT |
|000005e0| 4d 65 6e 75 48 61 6e 64 | 6c 65 2c 20 4e 65 77 4d |MenuHand|le, NewM|
|000005f0| 65 6e 75 2c 20 41 70 70 | 65 6e 64 4d 65 6e 75 2c |enu, App|endMenu,|
|00000600| 20 44 69 73 61 62 6c 65 | 49 74 65 6d 2c 20 45 6e | Disable|Item, En|
|00000610| 61 62 6c 65 49 74 65 6d | 2c 0d 09 09 09 09 09 09 |ableItem|,.......|
|00000620| 09 09 09 09 09 09 47 65 | 74 49 74 65 6d 2c 20 43 |......Ge|tItem, C|
|00000630| 6f 75 6e 74 4d 49 74 65 | 6d 73 2c 20 44 69 73 70 |ountMIte|ms, Disp|
|00000640| 6f 73 65 4d 65 6e 75 3b | 0d 46 52 4f 4d 20 57 69 |oseMenu;|.FROM Wi|
|00000650| 6e 64 6f 77 4d 61 6e 61 | 67 65 72 20 49 4d 50 4f |ndowMana|ger IMPO|
|00000660| 52 54 20 57 69 6e 64 6f | 77 50 74 72 2c 20 4e 65 |RT Windo|wPtr, Ne|
|00000670| 77 57 69 6e 64 6f 77 2c | 20 64 6f 63 75 6d 65 6e |wWindow,| documen|
|00000680| 74 50 72 6f 63 2c 20 47 | 65 74 57 54 69 74 6c 65 |tProc, G|etWTitle|
|00000690| 2c 0d 09 09 09 09 09 09 | 09 09 09 09 09 09 09 44 |,.......|.......D|
|000006a0| 69 73 70 6f 73 65 57 69 | 6e 64 6f 77 2c 20 53 65 |isposeWi|ndow, Se|
|000006b0| 6c 65 63 74 57 69 6e 64 | 6f 77 2c 20 57 69 6e 64 |lectWind|ow, Wind|
|000006c0| 6f 77 50 65 65 6b 2c 20 | 46 72 6f 6e 74 57 69 6e |owPeek, |FrontWin|
|000006d0| 64 6f 77 3b 0d 46 52 4f | 4d 20 53 74 72 69 6e 67 |dow;.FRO|M String|
|000006e0| 73 20 49 4d 50 4f 52 54 | 20 53 74 72 32 35 35 3b |s IMPORT| Str255;|
|000006f0| 0d 46 52 4f 4d 20 55 74 | 69 6c 69 74 69 65 73 20 |.FROM Ut|ilities |
|00000700| 49 4d 50 4f 52 54 20 45 | 71 75 61 6c 53 74 72 69 |IMPORT E|qualStri|
|00000710| 6e 67 3b 0d 46 52 4f 4d | 20 42 44 50 61 63 6b 61 |ng;.FROM| BDPacka|
|00000720| 67 65 20 49 4d 50 4f 52 | 54 20 4e 75 6d 54 6f 53 |ge IMPOR|T NumToS|
|00000730| 74 72 69 6e 67 3b 0d 46 | 52 4f 4d 20 54 72 61 6e |tring;.F|ROM Tran|
|00000740| 73 53 6b 65 6c 20 49 4d | 50 4f 52 54 20 53 6b 65 |sSkel IM|PORT Ske|
|00000750| 6c 49 6e 69 74 2c 20 53 | 6b 65 6c 41 70 70 6c 65 |lInit, S|kelApple|
|00000760| 2c 20 53 6b 65 6c 47 72 | 6f 77 42 6f 75 6e 64 73 |, SkelGr|owBounds|
|00000770| 2c 20 53 6b 65 6c 4d 65 | 6e 75 2c 20 53 6b 65 6c |, SkelMe|nu, Skel|
|00000780| 4d 61 69 6e 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |Main,...|........|
|00000790| 09 53 6b 65 6c 43 6c 6f | 62 62 65 72 2c 20 53 6b |.SkelClo|bber, Sk|
|000007a0| 65 6c 57 68 6f 61 2c 20 | 53 6b 65 6c 57 69 6e 64 |elWhoa, |SkelWind|
|000007b0| 6f 77 2c 20 57 4d 6f 75 | 73 65 50 72 6f 63 2c 20 |ow, WMou|seProc, |
|000007c0| 57 4b 65 79 50 72 6f 63 | 2c 0d 09 09 09 09 09 09 |WKeyProc|,.......|
|000007d0| 09 09 09 09 09 57 41 63 | 74 69 76 61 74 65 50 72 |.....WAc|tivatePr|
|000007e0| 6f 63 2c 20 57 49 64 6c | 65 50 72 6f 63 2c 20 53 |oc, WIdl|eProc, S|
|000007f0| 6b 65 6c 52 6d 76 65 57 | 69 6e 64 2c 20 53 6b 65 |kelRmveW|ind, Ske|
|00000800| 6c 52 6d 76 65 4d 65 6e | 75 3b 0d 0d 43 4f 4e 53 |lRmveMen|u;..CONS|
|00000810| 54 0d 09 6d 61 78 57 69 | 6e 64 20 3d 20 32 30 3b |T..maxWi|nd = 20;|
|00000820| 0d 0d 09 61 4d 65 6e 75 | 4e 75 6d 20 3d 20 31 3b |...aMenu|Num = 1;|
|00000830| 09 28 2a 20 41 70 70 6c | 65 20 4d 65 6e 75 20 2a |.(* Appl|e Menu *|
|00000840| 29 0d 09 66 4d 65 6e 75 | 4e 75 6d 20 3d 20 32 3b |)..fMenu|Num = 2;|
|00000850| 09 28 2a 20 46 69 6c 65 | 20 4d 65 6e 75 20 2a 29 |.(* File| Menu *)|
|00000860| 0d 09 09 6e 65 77 20 3d | 20 31 3b 0d 09 09 71 75 |...new =| 1;...qu|
|00000870| 69 74 20 3d 20 33 3b 0d | 09 77 4d 65 6e 75 4e 75 |it = 3;.|.wMenuNu|
|00000880| 6d 20 3d 20 33 3b 09 28 | 2a 20 57 69 6e 64 6f 77 |m = 3;.(|* Window|
|00000890| 73 20 4d 65 6e 75 20 2a | 29 0d 09 63 4d 65 6e 75 |s Menu *|)..cMenu|
|000008a0| 4e 75 6d 20 3d 20 34 3b | 09 28 2a 20 43 6f 6c 6f |Num = 4;|.(* Colo|
|000008b0| 72 20 4d 65 6e 75 20 2a | 29 0d 09 09 63 57 68 69 |r Menu *|)...cWhi|
|000008c0| 74 65 20 3d 20 31 3b 0d | 09 09 63 4c 74 47 72 61 |te = 1;.|..cLtGra|
|000008d0| 79 20 3d 20 32 3b 0d 09 | 09 63 47 72 61 79 20 3d |y = 2;..|.cGray =|
|000008e0| 20 33 3b 0d 09 09 63 44 | 6b 47 72 61 79 20 3d 20 | 3;...cD|kGray = |
|000008f0| 34 3b 0d 09 09 63 42 6c | 61 63 6b 20 3d 20 35 3b |4;...cBl|ack = 5;|
|00000900| 0d 0d 56 41 52 0d 09 66 | 69 6c 65 4d 65 6e 75 2c |..VAR..f|ileMenu,|
|00000910| 0d 09 77 69 6e 64 6f 77 | 4d 65 6e 75 2c 0d 09 63 |..window|Menu,..c|
|00000920| 6f 6c 6f 72 4d 65 6e 75 | 3a 09 4d 65 6e 75 48 61 |olorMenu|:.MenuHa|
|00000930| 6e 64 6c 65 3b 0d 09 0d | 09 77 69 6e 64 43 6f 75 |ndle;...|.windCou|
|00000940| 6e 74 3a 20 49 4e 54 45 | 47 45 52 3b 0d 09 77 69 |nt: INTE|GER;..wi|
|00000950| 6e 64 4e 75 6d 3a 20 4c | 4f 4e 47 49 4e 54 3b 0d |ndNum: L|ONGINT;.|
|00000960| 09 64 75 6d 6d 79 3a 20 | 4c 4f 4e 47 49 4e 54 3b |.dummy: |LONGINT;|
|00000970| 0d 0d 50 52 4f 43 45 44 | 55 52 45 20 44 6f 57 55 |..PROCED|URE DoWU|
|00000980| 70 64 61 74 65 28 72 65 | 73 69 7a 65 64 3a 20 42 |pdate(re|sized: B|
|00000990| 4f 4f 4c 45 41 4e 29 3b | 09 28 2a 20 49 67 6e 6f |OOLEAN);|.(* Igno|
|000009a0| 72 65 73 20 47 72 6f 77 | 20 2a 29 0d 0d 09 56 41 |res Grow| *)...VA|
|000009b0| 52 0d 09 09 74 68 65 50 | 6f 72 74 3a 20 47 72 61 |R...theP|ort: Gra|
|000009c0| 66 50 74 72 3b 0d 0d 42 | 45 47 49 4e 0d 09 47 65 |fPtr;..B|EGIN..Ge|
|000009d0| 74 50 6f 72 74 28 74 68 | 65 50 6f 72 74 29 3b 0d |tPort(th|ePort);.|
|000009e0| 09 45 72 61 73 65 52 65 | 63 74 28 74 68 65 50 6f |.EraseRe|ct(thePo|
|000009f0| 72 74 5e 2e 70 6f 72 74 | 52 65 63 74 29 3b 09 28 |rt^.port|Rect);.(|
|00000a00| 2a 20 72 65 70 61 69 6e | 74 20 77 69 74 68 20 62 |* repain|t with b|
|00000a10| 61 63 6b 67 72 6f 75 6e | 64 20 70 61 74 74 65 72 |ackgroun|d patter|
|00000a20| 6e 20 2a 29 0d 45 4e 44 | 20 44 6f 57 55 70 64 61 |n *).END| DoWUpda|
|00000a30| 74 65 3b 0d 0d 0d 50 52 | 4f 43 45 44 55 52 45 20 |te;...PR|OCEDURE |
|00000a40| 44 6f 57 43 6c 6f 62 62 | 65 72 3b 0d 28 2a 0d 20 |DoWClobb|er;.(*. |
|00000a50| 2a 09 44 69 73 70 6f 73 | 65 20 6f 66 20 77 69 6e |*.Dispos|e of win|
|00000a60| 64 6f 77 2e 20 20 53 6b | 65 6c 20 6d 61 6b 65 73 |dow. Sk|el makes|
|00000a70| 20 73 75 72 65 20 74 68 | 65 20 70 6f 72 74 20 69 | sure th|e port i|
|00000a80| 73 20 70 6f 69 6e 74 69 | 6e 67 20 74 6f 20 74 68 |s pointi|ng to th|
|00000a90| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 0d 20 2a |e approp|riate. *|
|00000aa0| 09 77 69 6e 64 6f 77 2c | 20 73 6f 20 74 68 69 73 |.window,| so this|
|00000ab0| 20 70 72 6f 63 65 64 75 | 72 65 20 63 61 6e 20 64 | procedu|re can d|
|00000ac0| 65 74 65 72 6d 69 6e 65 | 20 77 68 69 63 68 20 77 |etermine| which w|
|00000ad0| 69 6e 64 6f 77 20 69 73 | 20 74 6f 20 62 65 20 64 |indow is| to be d|
|00000ae0| 69 73 70 6f 73 65 64 20 | 6f 66 2c 0d 20 2a 09 77 |isposed |of,. *.w|
|00000af0| 69 74 68 6f 75 74 20 62 | 65 69 6e 67 20 74 6f 6c |ithout b|eing tol|
|00000b00| 64 20 65 78 70 6c 69 63 | 69 74 6c 79 2e 0d 20 2a |d explic|itly.. *|
|00000b10| 29 0d 09 56 41 52 0d 09 | 09 74 68 65 50 6f 72 74 |)..VAR..|.thePort|
|00000b20| 3a 20 47 72 61 66 50 74 | 72 3b 0d 0d 42 45 47 49 |: GrafPt|r;..BEGI|
|00000b30| 4e 0d 09 47 65 74 50 6f | 72 74 28 74 68 65 50 6f |N..GetPo|rt(thePo|
|00000b40| 72 74 29 3b 0d 09 44 69 | 73 70 6f 73 65 57 69 6e |rt);..Di|sposeWin|
|00000b50| 64 6f 77 28 74 68 65 50 | 6f 72 74 29 3b 0d 45 4e |dow(theP|ort);.EN|
|00000b60| 44 20 44 6f 57 43 6c 6f | 62 62 65 72 3b 0d 0d 0d |D DoWClo|bber;...|
|00000b70| 50 52 4f 43 45 44 55 52 | 45 20 44 6f 57 69 6e 64 |PROCEDUR|E DoWind|
|00000b80| 6f 77 4d 65 6e 75 28 69 | 74 65 6d 3a 20 49 4e 54 |owMenu(i|tem: INT|
|00000b90| 45 47 45 52 29 3b 0d 0d | 09 56 41 52 0d 09 09 69 |EGER);..|.VAR...i|
|00000ba0| 54 69 74 6c 65 2c 20 77 | 54 69 74 6c 65 3a 20 53 |Title, w|Title: S|
|00000bb0| 74 72 32 35 35 3b 0d 09 | 09 77 3a 20 57 69 6e 64 |tr255;..|.w: Wind|
|00000bc0| 6f 77 50 65 65 6b 3b 0d | 0d 42 45 47 49 4e 0d 09 |owPeek;.|.BEGIN..|
|00000bd0| 47 65 74 49 74 65 6d 28 | 77 69 6e 64 6f 77 4d 65 |GetItem(|windowMe|
|00000be0| 6e 75 2c 20 69 74 65 6d | 2c 20 69 54 69 74 6c 65 |nu, item|, iTitle|
|00000bf0| 29 3b 0d 09 77 20 3a 3d | 20 56 41 4c 28 57 69 6e |);..w :=| VAL(Win|
|00000c00| 64 6f 77 50 65 65 6b 2c | 20 46 72 6f 6e 74 57 69 |dowPeek,| FrontWi|
|00000c10| 6e 64 6f 77 28 29 29 3b | 0d 09 4c 4f 4f 50 0d 09 |ndow());|..LOOP..|
|00000c20| 09 49 46 20 77 20 3d 20 | 4e 49 4c 20 54 48 45 4e |.IF w = |NIL THEN|
|00000c30| 20 45 58 49 54 3b 20 45 | 4e 44 3b 0d 09 09 47 65 | EXIT; E|ND;...Ge|
|00000c40| 74 57 54 69 74 6c 65 28 | 56 41 4c 28 57 69 6e 64 |tWTitle(|VAL(Wind|
|00000c50| 6f 77 50 74 72 2c 20 77 | 29 2c 20 77 54 69 74 6c |owPtr, w|), wTitl|
|00000c60| 65 29 3b 0d 09 09 49 46 | 20 45 71 75 61 6c 53 74 |e);...IF| EqualSt|
|00000c70| 72 69 6e 67 28 69 54 69 | 74 6c 65 2c 20 77 54 69 |ring(iTi|tle, wTi|
|00000c80| 74 6c 65 2c 20 46 41 4c | 53 45 2c 20 54 52 55 45 |tle, FAL|SE, TRUE|
|00000c90| 29 20 54 48 45 4e 0d 09 | 09 09 53 65 6c 65 63 74 |) THEN..|..Select|
|00000ca0| 57 69 6e 64 6f 77 28 56 | 41 4c 28 57 69 6e 64 6f |Window(V|AL(Windo|
|00000cb0| 77 50 74 72 2c 20 77 29 | 29 3b 0d 09 09 09 45 58 |wPtr, w)|);....EX|
|00000cc0| 49 54 3b 0d 09 09 45 4e | 44 3b 0d 09 09 77 20 3a |IT;...EN|D;...w :|
|00000cd0| 3d 20 77 5e 2e 6e 65 78 | 74 57 69 6e 64 6f 77 3b |= w^.nex|tWindow;|
|00000ce0| 0d 09 45 4e 44 3b 0d 45 | 4e 44 20 44 6f 57 69 6e |..END;.E|ND DoWin|
|00000cf0| 64 6f 77 4d 65 6e 75 3b | 0d 0d 0d 50 52 4f 43 45 |dowMenu;|...PROCE|
|00000d00| 44 55 52 45 20 44 6f 43 | 6f 6c 6f 72 4d 65 6e 75 |DURE DoC|olorMenu|
|00000d10| 28 69 74 65 6d 3a 20 49 | 4e 54 45 47 45 52 29 3b |(item: I|NTEGER);|
|00000d20| 0d 28 2a 0d 20 2a 09 43 | 68 61 6e 67 65 20 74 68 |.(*. *.C|hange th|
|00000d30| 65 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 70 61 74 |e backgr|ound pat|
|00000d40| 74 65 72 6e 20 6f 66 20 | 74 68 65 20 66 72 6f 6e |tern of |the fron|
|00000d50| 74 6d 6f 73 74 20 77 69 | 6e 64 6f 77 2e 20 20 49 |tmost wi|ndow. I|
|00000d60| 67 6e 6f 72 65 20 69 66 | 20 69 74 27 73 20 61 20 |gnore if| it's a |
|00000d70| 44 41 2e 0d 20 2a 29 0d | 09 56 41 52 0d 09 09 77 |DA.. *).|.VAR...w|
|00000d80| 3a 20 57 69 6e 64 6f 77 | 50 65 65 6b 3b 0d 0d 42 |: Window|Peek;..B|
|00000d90| 45 47 49 4e 0d 09 77 20 | 3a 3d 20 56 41 4c 28 57 |EGIN..w |:= VAL(W|
|00000da0| 69 6e 64 6f 77 50 65 65 | 6b 2c 20 46 72 6f 6e 74 |indowPee|k, Front|
|00000db0| 57 69 6e 64 6f 77 28 29 | 29 3b 0d 09 49 46 20 77 |Window()|);..IF w|
|00000dc0| 5e 2e 77 69 6e 64 6f 77 | 4b 69 6e 64 20 3c 20 30 |^.window|Kind < 0|
|00000dd0| 20 54 48 45 4e 20 52 45 | 54 55 52 4e 3b 20 45 4e | THEN RE|TURN; EN|
|00000de0| 44 3b 20 28 2a 20 49 74 | 20 62 65 6c 6f 6e 67 73 |D; (* It| belongs|
|00000df0| 20 74 6f 20 74 68 65 20 | 73 79 73 74 65 6d 20 2a | to the |system *|
|00000e00| 29 0d 09 43 41 53 45 20 | 69 74 65 6d 20 4f 46 0d |)..CASE |item OF.|
|00000e10| 09 09 63 57 68 69 74 65 | 3a 20 42 61 63 6b 50 61 |..cWhite|: BackPa|
|00000e20| 74 28 77 68 69 74 65 29 | 3b 0d 09 09 7c 0d 09 09 |t(white)|;...|...|
|00000e30| 63 4c 74 47 72 61 79 3a | 20 42 61 63 6b 50 61 74 |cLtGray:| BackPat|
|00000e40| 28 6c 74 47 72 61 79 29 | 3b 0d 09 09 7c 0d 09 09 |(ltGray)|;...|...|
|00000e50| 63 47 72 61 79 3a 20 42 | 61 63 6b 50 61 74 28 67 |cGray: B|ackPat(g|
|00000e60| 72 61 79 29 3b 0d 09 09 | 7c 0d 09 09 63 44 6b 47 |ray);...||...cDkG|
|00000e70| 72 61 79 3a 20 42 61 63 | 6b 50 61 74 28 64 6b 47 |ray: Bac|kPat(dkG|
|00000e80| 72 61 79 29 3b 0d 09 09 | 7c 0d 09 09 63 42 6c 61 |ray);...||...cBla|
|00000e90| 63 6b 3a 20 42 61 63 6b | 50 61 74 28 62 6c 61 63 |ck: Back|Pat(blac|
|00000ea0| 6b 29 3b 0d 09 09 45 4c | 53 45 20 28 2a 20 64 6f |k);...EL|SE (* do|
|00000eb0| 20 6e 6f 74 68 69 6e 67 | 20 2a 29 0d 09 45 4e 44 | nothing| *)..END|
|00000ec0| 3b 0d 09 45 72 61 73 65 | 52 65 63 74 28 77 5e 2e |;..Erase|Rect(w^.|
|00000ed0| 70 6f 72 74 2e 70 6f 72 | 74 52 65 63 74 29 3b 0d |port.por|tRect);.|
|00000ee0| 45 4e 44 20 44 6f 43 6f | 6c 6f 72 4d 65 6e 75 3b |END DoCo|lorMenu;|
|00000ef0| 0d 0d 0d 50 52 4f 43 45 | 44 55 52 45 20 44 6f 4d |...PROCE|DURE DoM|
|00000f00| 43 6c 6f 62 62 65 72 28 | 74 68 65 4d 65 6e 75 3a |Clobber(|theMenu:|
|00000f10| 20 4d 65 6e 75 48 61 6e | 64 6c 65 29 3b 0d 0d 42 | MenuHan|dle);..B|
|00000f20| 45 47 49 4e 0d 09 44 69 | 73 70 6f 73 65 4d 65 6e |EGIN..Di|sposeMen|
|00000f30| 75 28 74 68 65 4d 65 6e | 75 29 3b 0d 45 4e 44 20 |u(theMen|u);.END |
|00000f40| 44 6f 4d 43 6c 6f 62 62 | 65 72 3b 0d 0d 0d 50 52 |DoMClobb|er;...PR|
|00000f50| 4f 43 45 44 55 52 45 20 | 44 6f 57 43 6c 6f 73 65 |OCEDURE |DoWClose|
|00000f60| 3b 0d 0d 09 56 41 52 0d | 09 09 74 68 65 50 6f 72 |;...VAR.|..thePor|
|00000f70| 74 3a 20 47 72 61 66 50 | 74 72 3b 0d 09 09 6d 3a |t: GrafP|tr;...m:|
|00000f80| 20 4d 65 6e 75 48 61 6e | 64 6c 65 3b 0d 09 09 69 | MenuHan|dle;...i|
|00000f90| 2c 20 6d 49 74 65 6d 73 | 3a 20 49 4e 54 45 47 45 |, mItems|: INTEGE|
|00000fa0| 52 3b 0d 09 09 69 54 69 | 74 6c 65 2c 20 77 54 69 |R;...iTi|tle, wTi|
|00000fb0| 74 6c 65 3a 20 53 74 72 | 32 35 35 3b 0d 0d 42 45 |tle: Str|255;..BE|
|00000fc0| 47 49 4e 0d 09 47 65 74 | 50 6f 72 74 28 74 68 65 |GIN..Get|Port(the|
|00000fd0| 50 6f 72 74 29 3b 0d 09 | 47 65 74 57 54 69 74 6c |Port);..|GetWTitl|
|00000fe0| 65 28 74 68 65 50 6f 72 | 74 2c 20 77 54 69 74 6c |e(thePor|t, wTitl|
|00000ff0| 65 29 3b 0d 09 53 6b 65 | 6c 52 6d 76 65 57 69 6e |e);..Ske|lRmveWin|
|00001000| 64 28 74 68 65 50 6f 72 | 74 29 3b 0d 09 44 45 43 |d(thePor|t);..DEC|
|00001010| 28 77 69 6e 64 43 6f 75 | 6e 74 29 3b 0d 09 49 46 |(windCou|nt);..IF|
|00001020| 20 77 69 6e 64 43 6f 75 | 6e 74 20 3d 20 30 20 54 | windCou|nt = 0 T|
|00001030| 48 45 4e 09 28 2a 20 6c | 61 73 74 20 77 69 6e 64 |HEN.(* l|ast wind|
|00001040| 6f 77 2c 20 63 6c 6f 62 | 62 65 72 20 74 68 65 20 |ow, clob|ber the |
|00001050| 6d 65 6e 75 73 20 2a 29 | 0d 09 09 53 6b 65 6c 52 |menus *)|...SkelR|
|00001060| 6d 76 65 4d 65 6e 75 28 | 77 69 6e 64 6f 77 4d 65 |mveMenu(|windowMe|
|00001070| 6e 75 29 3b 0d 09 09 53 | 6b 65 6c 52 6d 76 65 4d |nu);...S|kelRmveM|
|00001080| 65 6e 75 28 63 6f 6c 6f | 72 4d 65 6e 75 29 3b 0d |enu(colo|rMenu);.|
|00001090| 09 45 4c 53 45 0d 28 2a | 0d 20 2a 09 09 6a 75 73 |.ELSE.(*|. *..jus|
|000010a0| 74 20 74 61 6b 65 20 6f | 75 74 20 6f 66 20 6d 65 |t take o|ut of me|
|000010b0| 6e 75 20 d1 20 74 68 69 | 73 20 63 6f 75 6c 64 20 |nu . thi|s could |
|000010c0| 62 65 20 64 6f 6e 65 20 | 62 65 74 74 65 72 20 77 |be done |better w|
|000010d0| 69 74 68 20 44 65 6c 4d | 65 6e 75 49 74 65 6d 2c |ith DelM|enuItem,|
|000010e0| 0d 20 2a 09 09 62 75 74 | 20 74 68 65 20 6f 72 69 |. *..but| the ori|
|000010f0| 67 69 6e 61 6c 20 64 69 | 64 6e 27 74 20 75 73 65 |ginal di|dn't use|
|00001100| 20 69 74 20 61 6e 64 20 | 74 68 65 6e 20 69 74 20 | it and |then it |
|00001110| 77 6f 75 6c 64 6e 27 74 | 20 77 6f 72 6b 20 6f 6e |wouldn't| work on|
|00001120| 20 36 34 4b 20 52 4f 4d | 53 0d 20 2a 29 0d 09 09 | 64K ROM|S. *)...|
|00001130| 6d 20 3a 3d 20 4e 65 77 | 4d 65 6e 75 28 77 4d 65 |m := New|Menu(wMe|
|00001140| 6e 75 4e 75 6d 2c 20 22 | 57 69 6e 64 6f 77 73 22 |nuNum, "|Windows"|
|00001150| 29 3b 0d 09 09 6d 49 74 | 65 6d 73 20 3a 3d 20 43 |);...mIt|ems := C|
|00001160| 6f 75 6e 74 4d 49 74 65 | 6d 73 28 77 69 6e 64 6f |ountMIte|ms(windo|
|00001170| 77 4d 65 6e 75 29 3b 0d | 09 09 46 4f 52 20 69 20 |wMenu);.|..FOR i |
|00001180| 3a 3d 20 31 20 54 4f 20 | 6d 49 74 65 6d 73 20 44 |:= 1 TO |mItems D|
|00001190| 4f 0d 09 09 09 47 65 74 | 49 74 65 6d 28 77 69 6e |O....Get|Item(win|
|000011a0| 64 6f 77 4d 65 6e 75 2c | 20 69 2c 20 69 54 69 74 |dowMenu,| i, iTit|
|000011b0| 6c 65 29 3b 0d 09 09 09 | 49 46 20 4e 4f 54 20 45 |le);....|IF NOT E|
|000011c0| 71 75 61 6c 53 74 72 69 | 6e 67 28 69 54 69 74 6c |qualStri|ng(iTitl|
|000011d0| 65 2c 20 77 54 69 74 6c | 65 2c 20 46 41 4c 53 45 |e, wTitl|e, FALSE|
|000011e0| 2c 20 54 52 55 45 29 20 | 54 48 45 4e 0d 09 09 09 |, TRUE) |THEN....|
|000011f0| 09 41 70 70 65 6e 64 4d | 65 6e 75 28 6d 2c 20 69 |.AppendM|enu(m, i|
|00001200| 54 69 74 6c 65 29 3b 0d | 09 09 09 45 4e 44 3b 0d |Title);.|...END;.|
|00001210| 09 09 45 4e 44 3b 0d 09 | 09 53 6b 65 6c 52 6d 76 |..END;..|.SkelRmv|
|00001220| 65 4d 65 6e 75 28 77 69 | 6e 64 6f 77 4d 65 6e 75 |eMenu(wi|ndowMenu|
|00001230| 29 3b 0d 09 09 77 69 6e | 64 6f 77 4d 65 6e 75 20 |);...win|dowMenu |
|00001240| 3a 3d 20 6d 3b 0d 09 09 | 53 6b 65 6c 4d 65 6e 75 |:= m;...|SkelMenu|
|00001250| 28 77 69 6e 64 6f 77 4d | 65 6e 75 2c 20 44 6f 57 |(windowM|enu, DoW|
|00001260| 69 6e 64 6f 77 4d 65 6e | 75 2c 20 44 6f 4d 43 6c |indowMen|u, DoMCl|
|00001270| 6f 62 62 65 72 29 3b 0d | 09 45 4e 44 3b 0d 09 45 |obber);.|.END;..E|
|00001280| 6e 61 62 6c 65 49 74 65 | 6d 28 66 69 6c 65 4d 65 |nableIte|m(fileMe|
|00001290| 6e 75 2c 20 6e 65 77 29 | 3b 09 28 2a 20 63 61 6e |nu, new)|;.(* can|
|000012a0| 20 61 6c 77 61 79 73 20 | 63 72 65 61 74 65 20 61 | always |create a|
|000012b0| 74 20 6c 65 61 73 74 20 | 6f 6e 65 20 6d 6f 72 65 |t least |one more|
|000012c0| 20 6e 6f 77 20 2a 29 0d | 45 4e 44 20 44 6f 57 43 | now *).|END DoWC|
|000012d0| 6c 6f 73 65 3b 0d 0d 0d | 50 52 4f 43 45 44 55 52 |lose;...|PROCEDUR|
|000012e0| 45 20 4d 61 6b 65 57 69 | 6e 64 6f 77 3b 0d 28 2a |E MakeWi|ndow;.(*|
|000012f0| 0d 09 4d 61 6b 65 20 6e | 65 77 20 77 69 6e 64 6f |..Make n|ew windo|
|00001300| 77 2e 20 20 4c 6f 63 61 | 74 65 20 61 74 20 28 31 |w. Loca|te at (1|
|00001310| 30 30 2c 20 31 30 30 29 | 20 69 66 20 6e 6f 20 6f |00, 100)| if no o|
|00001320| 74 68 65 72 20 77 69 6e | 64 6f 77 20 65 78 69 73 |ther win|dow exis|
|00001330| 74 73 2c 20 65 6c 73 65 | 20 6f 66 66 73 65 74 0d |ts, else| offset.|
|00001340| 09 73 6c 69 67 68 74 6c | 79 20 66 72 6f 6d 20 66 |.slightl|y from f|
|00001350| 72 6f 6e 74 20 77 69 6e | 64 6f 77 2e 20 20 54 68 |ront win|dow. Th|
|00001360| 65 20 77 69 6e 64 6f 77 | 20 74 69 74 6c 65 20 69 |e window| title i|
|00001370| 73 20 74 68 65 20 6e 65 | 78 74 20 77 69 6e 64 6f |s the ne|xt windo|
|00001380| 77 20 6e 75 6d 62 65 72 | 2e 20 20 49 66 0d 09 74 |w number|. If..t|
|00001390| 68 69 73 20 69 73 20 74 | 68 65 20 66 69 72 73 74 |his is t|he first|
|000013a0| 20 77 69 6e 64 6f 77 2c | 20 63 72 65 61 74 65 20 | window,| create |
|000013b0| 74 68 65 20 57 69 6e 64 | 6f 77 73 20 61 6e 64 20 |the Wind|ows and |
|000013c0| 43 6f 6c 6f 72 20 6d 65 | 6e 75 73 2e 20 20 41 64 |Color me|nus. Ad|
|000013d0| 64 20 74 68 65 20 77 69 | 6e 64 6f 77 0d 09 74 69 |d the wi|ndow..ti|
|000013e0| 74 6c 65 20 61 73 20 74 | 68 65 20 6c 61 73 74 20 |tle as t|he last |
|000013f0| 69 74 65 6d 20 6f 66 20 | 74 68 65 20 57 69 6e 64 |item of |the Wind|
|00001400| 6f 77 73 20 6d 65 6e 75 | 2e 0d 09 0d 09 49 66 20 |ows menu|.....If |
|00001410| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 77 69 6e 64 |the maxi|mum wind|
|00001420| 6f 77 20 63 6f 75 6e 74 | 20 68 61 73 20 62 65 65 |ow count| has bee|
|00001430| 6e 20 72 65 61 63 68 65 | 64 2c 20 64 69 73 61 62 |n reache|d, disab|
|00001440| 6c 65 20 6e 65 77 20 69 | 6e 20 74 68 65 20 46 69 |le new i|n the Fi|
|00001450| 6c 65 20 6d 65 6e 75 2e | 0d 2a 29 0d 09 56 41 52 |le menu.|.*)..VAR|
|00001460| 0d 09 09 77 3a 20 57 69 | 6e 64 6f 77 50 74 72 3b |...w: Wi|ndowPtr;|
|00001470| 0d 09 09 72 2c 20 72 32 | 3a 20 52 65 63 74 3b 0d |...r, r2|: Rect;.|
|00001480| 09 09 73 3a 20 53 74 72 | 32 35 35 3b 0d 0d 42 45 |..s: Str|255;..BE|
|00001490| 47 49 4e 0d 09 53 65 74 | 52 65 63 74 28 72 2c 20 |GIN..Set|Rect(r, |
|000014a0| 30 2c 20 30 2c 20 32 30 | 30 2c 20 31 35 30 29 3b |0, 0, 20|0, 150);|
|000014b0| 0d 09 77 20 3a 3d 20 46 | 72 6f 6e 74 57 69 6e 64 |..w := F|rontWind|
|000014c0| 6f 77 28 29 3b 0d 09 49 | 46 20 77 20 3d 20 4e 49 |ow();..I|F w = NI|
|000014d0| 4c 20 54 48 45 4e 20 4f | 66 66 73 65 74 52 65 63 |L THEN O|ffsetRec|
|000014e0| 74 28 72 2c 20 31 30 30 | 2c 20 31 30 30 29 3b 0d |t(r, 100|, 100);.|
|000014f0| 09 45 4c 53 45 0d 09 09 | 72 32 20 3a 3d 20 77 5e |.ELSE...|r2 := w^|
|00001500| 2e 70 6f 72 74 42 69 74 | 73 2e 62 6f 75 6e 64 73 |.portBit|s.bounds|
|00001510| 3b 0d 09 09 4f 66 66 73 | 65 74 52 65 63 74 28 72 |;...Offs|etRect(r|
|00001520| 2c 20 32 30 2d 72 32 2e | 6c 65 66 74 2c 20 32 30 |, 20-r2.|left, 20|
|00001530| 2d 72 32 2e 74 6f 70 29 | 3b 0d 09 09 49 46 20 28 |-r2.top)|;...IF (|
|00001540| 72 2e 6c 65 66 74 20 3e | 20 34 38 30 29 20 4f 52 |r.left >| 480) OR|
|00001550| 20 28 72 2e 74 6f 70 20 | 3e 20 33 30 30 29 20 54 | (r.top |> 300) T|
|00001560| 48 45 4e 0d 09 09 09 4f | 66 66 73 65 74 52 65 63 |HEN....O|ffsetRec|
|00001570| 74 28 72 2c 20 34 30 2d | 72 2e 6c 65 66 74 2c 20 |t(r, 40-|r.left, |
|00001580| 34 30 2d 72 2e 74 6f 70 | 29 3b 0d 09 09 45 4e 44 |40-r.top|);...END|
|00001590| 3b 0d 09 45 4e 44 3b 0d | 09 49 4e 43 28 77 69 6e |;..END;.|.INC(win|
|000015a0| 64 4e 75 6d 29 3b 0d 09 | 4e 75 6d 54 6f 53 74 72 |dNum);..|NumToStr|
|000015b0| 69 6e 67 28 77 69 6e 64 | 4e 75 6d 2c 20 73 29 3b |ing(wind|Num, s);|
|000015c0| 0d 09 77 20 3a 3d 20 4e | 65 77 57 69 6e 64 6f 77 |..w := N|ewWindow|
|000015d0| 28 4e 49 4c 2c 20 72 2c | 20 73 2c 20 54 52 55 45 |(NIL, r,| s, TRUE|
|000015e0| 2c 20 64 6f 63 75 6d 65 | 6e 74 50 72 6f 63 2c 20 |, docume|ntProc, |
|000015f0| 56 41 4c 28 57 69 6e 64 | 6f 77 50 74 72 2c 20 2d |VAL(Wind|owPtr, -|
|00001600| 31 44 29 2c 20 54 52 55 | 45 2c 20 30 44 29 3b 0d |1D), TRU|E, 0D);.|
|00001610| 09 53 6b 65 6c 57 69 6e | 64 6f 77 28 09 77 2c 0d |.SkelWin|dow(.w,.|
|00001620| 09 09 09 09 09 09 09 56 | 41 4c 28 57 4d 6f 75 73 |.......V|AL(WMous|
|00001630| 65 50 72 6f 63 2c 20 4e | 49 4c 29 2c 0d 09 09 09 |eProc, N|IL),....|
|00001640| 09 09 09 09 56 41 4c 28 | 57 4b 65 79 50 72 6f 63 |....VAL(|WKeyProc|
|00001650| 2c 20 4e 49 4c 29 2c 0d | 09 09 09 09 09 09 09 44 |, NIL),.|.......D|
|00001660| 6f 57 55 70 64 61 74 65 | 2c 0d 09 09 09 09 09 09 |oWUpdate|,.......|
|00001670| 09 56 41 4c 28 57 41 63 | 74 69 76 61 74 65 50 72 |.VAL(WAc|tivatePr|
|00001680| 6f 63 2c 20 4e 49 4c 29 | 2c 0d 09 09 09 09 09 09 |oc, NIL)|,.......|
|00001690| 09 44 6f 57 43 6c 6f 73 | 65 2c 0d 09 09 09 09 09 |.DoWClos|e,......|
|000016a0| 09 09 44 6f 57 43 6c 6f | 62 62 65 72 2c 0d 09 09 |..DoWClo|bber,...|
|000016b0| 09 09 09 09 09 56 41 4c | 28 57 49 64 6c 65 50 72 |.....VAL|(WIdlePr|
|000016c0| 6f 63 2c 20 4e 49 4c 29 | 2c 0d 09 09 09 09 09 09 |oc, NIL)|,.......|
|000016d0| 09 46 41 4c 53 45 29 3b | 0d 09 49 46 20 77 69 6e |.FALSE);|..IF win|
|000016e0| 64 43 6f 75 6e 74 20 3d | 20 30 20 54 48 45 4e 0d |dCount =| 0 THEN.|
|000016f0| 09 09 49 4e 43 28 77 69 | 6e 64 43 6f 75 6e 74 29 |..INC(wi|ndCount)|
|00001700| 3b 0d 09 09 63 6f 6c 6f | 72 4d 65 6e 75 20 3a 3d |;...colo|rMenu :=|
|00001710| 20 4e 65 77 4d 65 6e 75 | 28 63 4d 65 6e 75 4e 75 | NewMenu|(cMenuNu|
|00001720| 6d 2c 20 22 43 6f 6c 6f | 72 22 29 3b 0d 09 09 41 |m, "Colo|r");...A|
|00001730| 70 70 65 6e 64 4d 65 6e | 75 28 63 6f 6c 6f 72 4d |ppendMen|u(colorM|
|00001740| 65 6e 75 2c 20 22 57 68 | 69 74 65 3b 4c 69 67 68 |enu, "Wh|ite;Ligh|
|00001750| 74 20 47 72 61 79 3b 47 | 72 61 79 3b 44 61 72 6b |t Gray;G|ray;Dark|
|00001760| 20 47 72 61 79 3b 42 6c | 61 63 6b 22 29 3b 0d 09 | Gray;Bl|ack");..|
|00001770| 09 53 6b 65 6c 4d 65 6e | 75 28 63 6f 6c 6f 72 4d |.SkelMen|u(colorM|
|00001780| 65 6e 75 2c 20 44 6f 43 | 6f 6c 6f 72 4d 65 6e 75 |enu, DoC|olorMenu|
|00001790| 2c 20 44 6f 4d 43 6c 6f | 62 62 65 72 29 3b 0d 09 |, DoMClo|bber);..|
|000017a0| 09 77 69 6e 64 6f 77 4d | 65 6e 75 20 3a 3d 20 4e |.windowM|enu := N|
|000017b0| 65 77 4d 65 6e 75 28 77 | 4d 65 6e 75 4e 75 6d 2c |ewMenu(w|MenuNum,|
|000017c0| 20 22 57 69 6e 64 6f 77 | 73 22 29 3b 0d 09 09 53 | "Window|s");...S|
|000017d0| 6b 65 6c 4d 65 6e 75 28 | 77 69 6e 64 6f 77 4d 65 |kelMenu(|windowMe|
|000017e0| 6e 75 2c 20 44 6f 57 69 | 6e 64 6f 77 4d 65 6e 75 |nu, DoWi|ndowMenu|
|000017f0| 2c 20 44 6f 4d 43 6c 6f | 62 62 65 72 29 3b 0d 09 |, DoMClo|bber);..|
|00001800| 45 4c 53 45 20 49 4e 43 | 28 77 69 6e 64 43 6f 75 |ELSE INC|(windCou|
|00001810| 6e 74 29 3b 0d 09 45 4e | 44 3b 0d 09 41 70 70 65 |nt);..EN|D;..Appe|
|00001820| 6e 64 4d 65 6e 75 28 77 | 69 6e 64 6f 77 4d 65 6e |ndMenu(w|indowMen|
|00001830| 75 2c 20 73 29 3b 0d 09 | 49 46 20 77 69 6e 64 43 |u, s);..|IF windC|
|00001840| 6f 75 6e 74 20 3d 20 6d | 61 78 57 69 6e 64 20 54 |ount = m|axWind T|
|00001850| 48 45 4e 20 44 69 73 61 | 62 6c 65 49 74 65 6d 28 |HEN Disa|bleItem(|
|00001860| 66 69 6c 65 4d 65 6e 75 | 2c 20 6e 65 77 29 3b 20 |fileMenu|, new); |
|00001870| 45 4e 44 3b 0d 45 4e 44 | 20 4d 61 6b 65 57 69 6e |END;.END| MakeWin|
|00001880| 64 6f 77 3b 0d 0d 0d 50 | 52 4f 43 45 44 55 52 45 |dow;...P|ROCEDURE|
|00001890| 20 44 6f 46 69 6c 65 4d | 65 6e 75 28 69 74 65 6d | DoFileM|enu(item|
|000018a0| 3a 20 49 4e 54 45 47 45 | 52 29 3b 0d 0d 42 45 47 |: INTEGE|R);..BEG|
|000018b0| 49 4e 0d 09 49 46 20 69 | 74 65 6d 20 3d 20 6e 65 |IN..IF i|tem = ne|
|000018c0| 77 20 54 48 45 4e 20 4d | 61 6b 65 57 69 6e 64 6f |w THEN M|akeWindo|
|000018d0| 77 3b 09 09 09 28 2a 20 | 4d 61 6b 65 20 61 20 6e |w;...(* |Make a n|
|000018e0| 65 77 20 77 69 6e 64 6f | 77 20 2a 29 0d 09 45 4c |ew windo|w *)..EL|
|000018f0| 53 49 46 20 69 74 65 6d | 20 3d 20 71 75 69 74 20 |SIF item| = quit |
|00001900| 54 48 45 4e 20 53 6b 65 | 6c 57 68 6f 61 3b 09 28 |THEN Ske|lWhoa;.(|
|00001910| 2a 20 54 65 6c 6c 20 54 | 72 61 6e 73 53 6b 65 6c |* Tell T|ransSkel|
|00001920| 2e 53 6b 65 6c 4d 61 69 | 6e 20 74 6f 20 71 75 69 |.SkelMai|n to qui|
|00001930| 74 20 2a 29 0d 09 45 4e | 44 3b 0d 45 4e 44 20 44 |t *)..EN|D;.END D|
|00001940| 6f 46 69 6c 65 4d 65 6e | 75 3b 0d 0d 0d 42 45 47 |oFileMen|u;...BEG|
|00001950| 49 4e 0d 09 77 69 6e 64 | 43 6f 75 6e 74 20 3a 3d |IN..wind|Count :=|
|00001960| 20 30 3b 0d 09 77 69 6e | 64 4e 75 6d 20 3a 3d 20 | 0;..win|dNum := |
|00001970| 30 44 3b 0d 09 53 6b 65 | 6c 49 6e 69 74 3b 0d 09 |0D;..Ske|lInit;..|
|00001980| 53 6b 65 6c 41 70 70 6c | 65 28 22 22 2c 20 56 41 |SkelAppl|e("", VA|
|00001990| 4c 28 50 52 4f 43 2c 20 | 4e 49 4c 29 29 3b 0d 09 |L(PROC, |NIL));..|
|000019a0| 66 69 6c 65 4d 65 6e 75 | 20 3a 3d 20 4e 65 77 4d |fileMenu| := NewM|
|000019b0| 65 6e 75 28 66 4d 65 6e | 75 4e 75 6d 2c 20 22 46 |enu(fMen|uNum, "F|
|000019c0| 69 6c 65 22 29 3b 0d 09 | 41 70 70 65 6e 64 4d 65 |ile");..|AppendMe|
|000019d0| 6e 75 28 66 69 6c 65 4d | 65 6e 75 2c 20 22 4e 65 |nu(fileM|enu, "Ne|
|000019e0| 77 2f 4e 3b 28 2d 3b 51 | 75 69 74 2f 51 22 29 3b |w/N;(-;Q|uit/Q");|
|000019f0| 0d 09 53 6b 65 6c 47 72 | 6f 77 42 6f 75 6e 64 73 |..SkelGr|owBounds|
|00001a00| 28 4e 49 4c 2c 20 35 30 | 2c 20 31 30 2c 20 35 30 |(NIL, 50|, 10, 50|
|00001a10| 30 2c 20 33 30 30 29 3b | 0d 09 53 6b 65 6c 4d 65 |0, 300);|..SkelMe|
|00001a20| 6e 75 28 66 69 6c 65 4d | 65 6e 75 2c 20 44 6f 46 |nu(fileM|enu, DoF|
|00001a30| 69 6c 65 4d 65 6e 75 2c | 20 44 6f 4d 43 6c 6f 62 |ileMenu,| DoMClob|
|00001a40| 62 65 72 29 3b 0d 09 53 | 6b 65 6c 4d 61 69 6e 3b |ber);..S|kelMain;|
|00001a50| 0d 09 53 6b 65 6c 43 6c | 6f 62 62 65 72 3b 0d 45 |..SkelCl|obber;.E|
|00001a60| 4e 44 20 4d 61 6e 79 57 | 69 6e 64 2e 0d 00 00 00 |ND ManyW|ind.....|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001a90| 6c 2e 53 6b 65 6c 4d 61 | 69 6e 20 74 6f 20 71 75 |l.SkelMa|in to qu|
|00001aa0| 69 74 20 2a 29 0d 09 45 | 4e 44 3b 0d 45 4e 44 20 |it *)..E|ND;.END |
|00001ab0| 1a 31 2e 20 44 44 45 78 | 70 61 6e 64 45 78 70 61 |.1. DDEx|pandExpa|
|00001ac0| 6e 64 54 65 6d 70 46 69 | 6c 65 20 78 02 00 00 00 |ndTempFi|le x....|
|00001ad0| 00 00 44 44 54 4d 44 44 | 41 50 01 00 00 00 00 00 |..DDTMDD|AP......|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 a5 f4 97 72 00 00 | 19 ed 00 00 01 7e 20 4e |.....r..|.....~ N|
|00001b00| 49 4c 29 3b 0d 09 66 69 | 6c 65 4d 65 6e 75 20 3a |IL);..fi|leMenu :|
|00001b10| 3d 20 4e 65 77 4d 65 6e | 75 28 66 4d 65 6e 75 4e |= NewMen|u(fMenuN|
|00001b20| 75 6d 2c 20 22 46 69 6c | 65 22 29 3b 0d 09 41 70 |um, "Fil|e");..Ap|
|00001b30| 70 65 6e 64 4d 65 6e 75 | 28 66 69 6c 65 4d 65 6e |pendMenu|(fileMen|
|00001b40| 75 2c 20 22 4e 65 77 2f | 4e 3b 28 2d 3b 51 75 69 |u, "New/|N;(-;Qui|
|00001b50| 74 2f 51 22 29 3b 0d 09 | 53 6b 65 6c 47 72 6f 77 |t/Q");..|SkelGrow|
|00001b60| 42 6f 75 6e 64 73 28 4e | 49 4c 2c 20 35 30 2c 20 |Bounds(N|IL, 50, |
|00001b70| 31 30 2c 20 35 30 30 2c | 20 33 30 30 29 3b 0d 09 |10, 500,| 300);..|
|00001b80| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 65 6e |...H..Co|urier.en|
|00001b90| 74 79 20 77 69 6e 64 6f | 77 73 20 74 6f 20 62 65 |ty windo|ws to be|
|00001ba0| 20 63 72 65 61 74 00 06 | 00 02 00 29 00 03 01 53 | creat..|...)...S|
|00001bb0| 01 fd 00 3c 00 24 01 53 | 01 fd 9a c9 81 aa 00 00 |...<.$.S|........|
|00001bc0| 05 0f 00 00 05 0f 00 00 | 15 41 01 00 00 00 01 00 |........|.A......|
|00001bd0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 00 cc 28 |...L...L|...2...(|
|00001be0| 02 94 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001bf0| 00 0a 03 ed ff ff 00 00 | 00 00 00 01 aa 52 00 00 |........|.....R..|
+--------+-------------------------+-------------------------+--------+--------+